package com.erp.gather.mapper;

import com.erp.gather.domain.ErpCollectProductCategory;
import com.erp.gather.domain.vo.ErpCollectProductCategoryVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 采集商品类目Mapper接口
 *
 * @author erp
 * @date 2023-03-22
 */
public interface ErpCollectProductCategoryMapper extends
		BaseMapperPlus<ErpCollectProductCategoryMapper, ErpCollectProductCategory, ErpCollectProductCategoryVo> {

    List<Map<String, Object>> selectStatisticsList(@Param("categoryName") String categoryName, @Param("brand")Long brand);

    List<Long> test();

    List<ErpCollectProductCategory> selectListByAncestors(@Param("split")List<String> split);

    List<ErpCollectProductCategory> queryPrimaryCategoryList(@Param("storeUserName")String storeUserName);

    List<ErpCollectProductCategory> queryRankCategoryList(@Param("storeId")Long storeId, @Param("type")int type,@Param("size")Integer size);

    List<ErpCollectProductCategory> queryNumberCategoryList(@Param("storeId")Long storeId, @Param("size")Integer size, @Param("categoryStr")String categoryStr);

}
